package com.opc.mapper;

import com.opc.entity.Device;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.opc.utils.ApiResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2023-03-13
 */
@Mapper
public interface DeviceMapper extends BaseMapper<Device> {

    List<String> selectAllDevices();

    List<String> getProductLine();

    List<Device> getAllDevicesByLine(@Param("line") String line);

    List<String> selectAllProLine();

    List<Device> getDeviceListByConditions(@Param("paramMap")Map<String, Object> paramMap);
}
